package ratonTalk;

import java.util.Date;

/**
 * @author ：Dsi
 * @date ：2021/11/18 19:14
 * Describe ：该类用于说明Date的使用
 */
public class Data {
    public static void main(String[] args) {
        Date date=new Date();
        System.out.println(date);
        System.out.println(date.getTime());
        long time =date.getTime();
        time = time + 1 * 24 * 60 * 60 * 1000;
        System.out.println(time);
        date.setTime(time);
        System.out.println(date);



    }

}
